package com.ss.android.common.applog;

import android.annotation.SuppressLint;
import android.text.TextUtils;

public class c implements IAliYunHandler {
    private static c a;
    private String b;

    static {
        c.a = null;
    }

    private c() {

        if (c.c()) {
            this.b = c.a("ro.aliyun.clouduuid", "false");
            if (TextUtils.isEmpty(this.b)) {
                this.b = c.a("ro.sys.aliyun.clouduuid", "false");
            }
        }
    }

    public static c a() {
        if (c.a == null) {
            Class v1 = c.class;
            synchronized (v1) {
                if (c.a == null) {
                    c.a = new c();
                }
            }
        }

        return c.a;
    }

    private static String a(String arg5, String arg6) {
        Object v0_1;
        try {
            v0_1 = Class.forName("android.os.SystemProperties")
                    .getMethod("get", String.class, String.class)
                    .invoke(null, arg5, arg6);
        } catch (Exception v0) {
            v0_1 = arg6;
        }

        return ((String) v0_1);
    }

    public final String getCloudUUID() {
        return this.b;
    }

    @SuppressLint(value = {"DefaultLocale"})
    private static boolean c() {
        try {
            if ((System.getProperty("java.vm.name") == null || !System.getProperty("java.vm.name").toLowerCase().contains("lemur")) && System.getProperty("ro.yunos.version") == null) {
                return false;
            }
        } catch (Exception v0) {
            return false;
        }

        boolean v0_1 = true;
        return v0_1;
    }
}

